import request from '@/utils/request'

// 模板列表
export function templateList(query) {
    return request({
        url: '/pla/reportModel/list',
        method: 'get',
        params: query
    })
}

// 模板新增
export function templateAdd(data) {
    return request({
        url: '/pla/reportModel',
        method: 'post',
        data: data
    })
}

// 模板修改
export function templateUpdate(data) {
    return request({
        url: '/pla/reportModel',
        method: 'put',
        data: data
    })
}

// 模板修改
export function templateDelete(reportModelId) {
    return request({
        url: '/pla/reportModel/' + reportModelId,
        method: 'delete',
    })
}


